<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<jsp:include page="../common/include.jsp"></jsp:include>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>商品列表 - Powered By </title>
<meta name="Author" content="SHOP++ Team" />
<meta name="Copyright" content="SHOP++" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />

</head>
<body class="list">
	<div class="body">
		<div class="listBar">
			<h1><span class="icon">&nbsp;</span>商品列表&nbsp;<span class="pageInfo">总记录数: </span></h1>
		</div>
		<form id="listForm" action="product!list.action" method="post">
			<div class="operateBar">
				<input type="button" class="addButton" onclick="location.href='product!add.action'" value="添加商品" />
				<label>查找:</label>
				<select name="pager.property">
					<option value="name" >
						商品名称
					</option>
					<option value="productSn">
						货号
					</option>
				</select>
				<label class="searchText"><input type="text" name="pager.keyword" value="" /></label><input type="button" id="searchButton" class="searchButton" value="" />
				<label>每页显示:</label>
				<select name="pager.pageSize" id="pageSize">
					<option value="15" >
						15
					</option>
					<option value="20" >
						20
					</option>
					<option value="30">
						30
					</option>
					<option value="50" >
						50
					</option>
					
				</select>
			</div>
			<table class="listTable">
				<tr>
					<th class="check">
						<input type="checkbox" class="allCheck" />
					</th>
					<th>
						<span class="sort" name="name">商品名称</span>
					</th>
					<th>
						<span class="sort" name="productSn">货号</span>
					</th>
					<th>
						<span class="sort" name="productCategory">分类</span>
					</th>
					<th>
						<span class="sort" name="price">本店价格</span>
					</th>
					<th>
						<span class="sort" name="isMarketable">上架</span>
					</th>
					<th>
						<span class="sort" name="isBest">精品</span>
					</th>
					<th>
						<span class="sort" name="isNew">新品</span>
					</th>
					<th>
						<span class="sort" name="isHot">热销</span>
					</th>
					<th>
						<span class="sort" name="store">库存</span>
					</th>
					<th>
						操作
					</th>
				</tr>
				<!-- <#list pager.list as list> -->
					<tr>
						<td>
							<input type="checkbox" name="ids" value="${list.id}" />
						</td>
						<td>
							<%-- <#if (list.name?length <= 20)!>
								<span title="${list.name}">${list.name}</span>
							<#else>
								<span title="${list.name}">${list.name[0..20]}...</span>
							</#if> --%>
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
							
						</td>
						<td>
						</td>
						<td>
							<a href="product!edit.action?id=" title="编辑">[编辑]</a>
							
						</td>
					</tr>
			
			</table>
			
		</form>
	</div>
</body>
</html>